package com.example.easytts.service

import com.example.easytts.model.Options
import org.springframework.stereotype.Service
import java.util.concurrent.atomic.AtomicInteger

@Service
class OptionsService {
    private val maxCharsPerDay = AtomicInteger(100_000)

    fun getOptions(): Options {
        return Options(maxCharsPerDay = maxCharsPerDay.get())
    }

    fun setMaxCharsPerDay(value: Int) {
        maxCharsPerDay.set(value)
    }
} 